package com.kefu.chat.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author CodeGenerator
 * @date 2022/08/15
 */
@Data
@TableName(value="chat_conversation")
@ApiModel(description = "内部会话")
public class ChatConversation implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@TableId(value="conversation_id",type=IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String conversationId;
    
    @TableField(value="tenant_id")
    @ApiModelProperty(value = "租户")
    private String tenantId;
    
    @TableField(value="create_user")
    @ApiModelProperty(value = "创建人")
    private String createUser;
    
    @TableField(value="create_time")
    @ApiModelProperty(value = "创建时间")
    private Long createTime;
    
    @TableField(value="name")
    @ApiModelProperty(value = "会话名称，单聊的时候是客服名称")
    private String name;
    
    @TableField(value="type")
    @ApiModelProperty(value = "会话类型，0单聊，1群聊")
    private Integer type;
    
    @TableField(value="users")
    @ApiModelProperty(value = "客服id从小到大，逗号分隔")
    private String users;

    @TableField(value="last_msg_time")
    @ApiModelProperty(value = "最后消息时间")
    private Long lastMsgTime;

    @TableField(value="last_msg_content")
    @ApiModelProperty(value = "最后消息内容")
    private String lastMsgContent;

    @TableField(value="last_msg_type")
    @ApiModelProperty(value = "最后消息类型")
    private Integer lastMsgType;

    @TableField(exist = false)
    @ApiModelProperty(value = "客服状态：0离线，1在线，2忙碌；单聊的时候才有值")
    private int adminStatus=0;
    

}